<!-- 医嘱详情 -->
<template>
	<view class="Tatal F8" >
		<view class="ordes F" >
			<text>{{item.type==1?'临时医嘱':'长期医嘱'}}</text>
		</view>
		<view class="ordes1 F" >
			<view class="ordes2">
				<view class="ordes3">
					<text >患者姓名：</text>
				</view>
				<text>{{item.name}}</text>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>性别：</text>
				</view>
				<text >{{item.gender}}</text>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>年龄：</text>
				</view>
				<text>{{item.age}}</text>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>科别：</text>
				</view>
				<text>{{item.division}}</text>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>住院床号或者病案号：</text>
				</view>
				<text>{{item.patientNumber}}</text>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>医嘱时间：</text>
				</view>
				<text>{{item.executionTime}}</text>
			</view>
			<view class="ordes4">
				<view class="ordes5">

						<label class="lable" >医嘱内容：</label>
						<label>{{item.content}}</label>
					
				</view>
			</view>
			<view class="ordes2">
				<view class="ordes3">
					<text>医生签名：</text>
				</view>
				<text>{{item.doctorSignature}}</text>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:[],
				ordersId:13
			}
		},
		onLoad(options) {
			var that=this
			that.ordersId=JSON.parse(options.da);
			console.log(JSON.parse(options.da));
			uni.request({
				url:this.$serverUrl + '/app/hospital/patient/getOrders',
				data: {
					ordersId:that.ordersId
				},
				method:"POST",
				header:{
					'token': uni.getStorageSync('token'),
					'content-type': "application/json",
					'content-type': "application/x-www-form-urlencoded"
				},
				success: (ret) => {
					console.log(ret);
					that.item=ret.data.data;
					console.log(ret.data.data);
				}
			})
			
		},
		methods: {
			
		}
	}
</script>

<style>
.Tatal{
	display: flex;
	flex-direction: column;
	margin-top: 20upx;
	font-size: 30upx;
	color: #353434;
	/* color: #1a1a1a; */
	}
.ordes{
	display: flex;
	flex-direction: row;
	height: 100upx;
	padding-left: 30upx;
	padding-right: 30upx;
	align-items: center;
	/* color: #1a1a1a; */
	/* color: #4d4d4d; */
	font-weight: bold;
	margin-bottom: 15upx;
}
.ordes1{
	display: flex;
	flex-direction: column;
	padding-left: 30upx;
	padding-right: 30upx;
	
}
.ordes2{
	display: flex;
	flex-direction: row;
	height: 100upx;
	border-bottom: 5upx solid #f1f1f1;
	align-items: center;
}
.ordes4{
	display: flex;
	flex-direction: row;
	/* height: 240upx; */
	border-bottom: 5upx solid #f1f1f1;
	/* padding-top:30upx ; */
	white-space: pre-wrap;
	padding-bottom: 40upx;
}
.ordes3{
	display: flex;
	flex-direction: row;
	/* height: 100upx; */
	align-items: center;
	color: #a7a6a7;
	margin-right: 30upx;
}
.text{
	/* 保留空白符序列，但是正常地进行换行。 */
	white-space: pre-wrap;
	/* line-height: 15upx; */
}
.ordes5{
	display: flex;
	flex-direction: row;
	padding-top: 30upx;
	clear:both;
}
.ordes6{
	clear:both;
}
.lable{
	margin-right: 30upx;
	color: #a7a6a7;
}
</style>
